package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SUserLocationSch extends SearchEasyUI{

	//根据时间进行搜索的部分
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private String lngSch;
    private String latSch;
    private Integer user_idSch;
    private String addressSch;
    private Date edited_timeSch;
    private Date created_timeSch;
    private Integer task_idSch;
    private Date dateSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setLngSch(String lngSch){
        this.lngSch = lngSch;
    }
    
    @ValueField(column = "lng")
    public String getLngSch(){
        return this.lngSch;
    }

    public void setLatSch(String latSch){
        this.latSch = latSch;
    }
    
    @ValueField(column = "lat")
    public String getLatSch(){
        return this.latSch;
    }

    public void setUserIdSch(Integer user_idSch){
        this.user_idSch = user_idSch;
    }
    
    @ValueField(column = "user_id")
    public Integer getUserIdSch(){
        return this.user_idSch;
    }

    public void setAddressSch(String addressSch){
        this.addressSch = addressSch;
    }
    
    @ValueField(column = "address")
    public String getAddressSch(){
        return this.addressSch;
    }

    public void setEditedTimeSch(Date edited_timeSch){
        this.edited_timeSch = edited_timeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.edited_timeSch;
    }

    public void setCreatedTimeSch(Date created_timeSch){
        this.created_timeSch = created_timeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.created_timeSch;
    }

    public void setTaskIdSch(Integer task_idSch){
        this.task_idSch = task_idSch;
    }
    
    @ValueField(column = "task_id")
    public Integer getTaskIdSch(){
        return this.task_idSch;
    }

    public void setDateSch(Date dateSch){
        this.dateSch = dateSch;
    }
    
    @ValueField(column = "date")
    public Date getDateSch(){
        return this.dateSch;
    }


}